package Day7;

public class Airbus extends Aircraft {

    private int seating;

    public Airbus(int weight, int height, int seating) {
        super(weight, height);
        this.seating=seating;
    }

    public int getSeating() {
        return seating;
    }

    public void setSeating(int count) {
        this.seating = count;
    }

    @Override
    public void fly() {
        System.out.println("客机起飞,当前自重是："+getWeight());
    }

    @Override
    public void speed() {
        System.out.println("客机加速,即将飞行高度是："+getHeight());
    }

    @Override
    public void land() {
        System.out.println("客机降落");
    }
    public void show(){
        System.out.println("客机座位数是："+getSeating()+"\n准备起飞");
        fly();
        speed();
        land();

    }
}
